<?php

class Webmix_Model_Block extends Core_Model_Item_Abstract {
    public function getCompanyName(){
        
        if(isset($this->title)) return $this->title;
        return 'sdfdf';
    }
	public function getLink(){
        
        if(isset($this->link)) return $this->link;
        return 'sdfdf';
    }
    public function isCompanyApproved(){
        $company = Engine_Api::_()->getItem('webmix_company',$this->company_id);
        if($company) return $company->approve;
        return 0;
    }
}